package com.baiyang.server.model.book;

import com.baiyang.server.annotation.NotNull;

/**
 * @author XVX - generator
 * @version 1
 */
@NotNull
public class PurchaseDetail {
	//唯一id
	@NotNull
	private String id;	
	//进货id
	@NotNull
	private String purchaseId;	
	//书籍id
	@NotNull
	private String bookId;
	private String bookName;
	//进货单价
	@NotNull
	private Double price;	
	//进货数量
	@NotNull
	private Integer num;	
	//是否有效：1-有效，0-无效
	private String available = "1";
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getPurchaseId(){
		return purchaseId;
	}
	public void setPurchaseId(String purchaseId){
		this.purchaseId = purchaseId;
	}
	public String getBookId(){
		return bookId;
	}
	public void setBookId(String bookId){
		this.bookId = bookId;
	}
	public Double getPrice(){
		return price;
	}
	public void setPrice(Double price){
		this.price = price;
	}
	public Integer getNum(){
		return num;
	}
	public void setNum(Integer num){
		this.num = num;
	}
	public String getAvailable(){
		return available;
	}
	public void setAvailable(String available){
		this.available = available;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
}
